package com.chenyongjing.design.pattern.decorator.battercake.v1;

public class Test {
    public static void main(String[] args) {
        BatterCake batterCake = new BatterCake();
        System.out.println(batterCake.getMsg()+"总价："+batterCake.getPrice());
        BatterCakeWithEgg batterCakeWithEgg =new BatterCakeWithEgg();
        System.out.println(batterCakeWithEgg.getMsg()+"总价："+batterCakeWithEgg.getPrice());
        BatterCakeWithEggAndSauage batterCakeWithEggAndSauage =new BatterCakeWithEggAndSauage();
        System.out.println(batterCakeWithEggAndSauage.getMsg()+"总价："+batterCakeWithEggAndSauage.getPrice());
    }
}
